package com.ruoyi.returnCustomer.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 客户退回记录业务对象 t_customer_return_record
 *
 * @author ruoyi
 * @date 2023-08-20
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TCustomerReturnRecordBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 客户id
     */
    @NotNull(message = "客户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long customerId;

    /**
     * 退回类型 1、池子之间退回 2、我的客户退回
     */
    @NotBlank(message = "退回类型 1、池子之间退回 2、我的客户退回不能为空", groups = { AddGroup.class, EditGroup.class })
    private String busType;

    /**
     * 操作人
     */
    @NotNull(message = "操作人不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long operatorId;

    /**
     * 操作人用户名+真实姓名
     */
    @NotBlank(message = "操作人用户名+真实姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String operatorName;

    /**
     * 操作人部门id
     */
    @NotNull(message = "操作人部门id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long operatorDeptId;

    /**
     * 退回部门id
     */
    @NotNull(message = "退回部门id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long returnDeptId;

    /**
     * 退回原因
     */
    @NotBlank(message = "退回原因不能为空", groups = { AddGroup.class, EditGroup.class })
    private String returnReason;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 客户姓名
     */
    @NotBlank(message = "客户姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String customerName;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String tel;

    /**
     * 部门名称
     */
    @NotBlank(message = "部门名称")
    private String returnName;

}
